<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>버퍼의 크기를 변경해 출력</title>
</head>
<body>
<%
	out.print("버퍼의 크기 : " + out.getBufferSize()+"<br>");
	out.print("버퍼 남은 양 : " + out.getRemaining()+"<br>");
	out.print("버퍼 사용 양 : " + (out.getBufferSize()-out.getRemaining())+"<br>");
	out.print("1<br>");
	out.print("2<br>");
	out.print("3<br>");
	out.print("1 2 3 출력후버퍼 남은 양 : " + out.getRemaining()+"<br>");
	out.print("버퍼 사용 양 : " + (out.getBufferSize()-out.getRemaining())+"<br>");
	out.flush();
	out.print("버퍼 남은 양 : " + out.getRemaining()+"<br>");
	out.print("4<br>");
	out.print("5<br>");
	out.print("6<br>");
	out.print("버퍼 남은 양 : " + out.getRemaining()+"<br>");
	out.clearBuffer();
	out.print("버퍼 남은 양 : " + out.getRemaining()+"<br>");
	out.print("7<br>");
	out.print("8<br>");
	out.print("9<br>");
	out.print("버퍼 남은 양 : " + out.getRemaining()+"<br>");
	out.flush();
	out.print("버퍼 남은 양 : " + out.getRemaining()+"<br>");
	out.print("10<br>");
	out.print("11<br>");
	out.print("12<br>");
	out.close();
	out.print("버퍼 남은 양 : " + out.getRemaining()+"<br>");
%>
</body>
</html>